package com.wn.class30.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PayOrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public PayOrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPidIsNull() {
            addCriterion("pid is null");
            return (Criteria) this;
        }

        public Criteria andPidIsNotNull() {
            addCriterion("pid is not null");
            return (Criteria) this;
        }

        public Criteria andPidEqualTo(Integer value) {
            addCriterion("pid =", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotEqualTo(Integer value) {
            addCriterion("pid <>", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThan(Integer value) {
            addCriterion("pid >", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThanOrEqualTo(Integer value) {
            addCriterion("pid >=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThan(Integer value) {
            addCriterion("pid <", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThanOrEqualTo(Integer value) {
            addCriterion("pid <=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidIn(List<Integer> values) {
            addCriterion("pid in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotIn(List<Integer> values) {
            addCriterion("pid not in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidBetween(Integer value1, Integer value2) {
            addCriterion("pid between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotBetween(Integer value1, Integer value2) {
            addCriterion("pid not between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andBussinessIdIsNull() {
            addCriterion("bussiness_id is null");
            return (Criteria) this;
        }

        public Criteria andBussinessIdIsNotNull() {
            addCriterion("bussiness_id is not null");
            return (Criteria) this;
        }

        public Criteria andBussinessIdEqualTo(Integer value) {
            addCriterion("bussiness_id =", value, "bussinessId");
            return (Criteria) this;
        }

        public Criteria andBussinessIdNotEqualTo(Integer value) {
            addCriterion("bussiness_id <>", value, "bussinessId");
            return (Criteria) this;
        }

        public Criteria andBussinessIdGreaterThan(Integer value) {
            addCriterion("bussiness_id >", value, "bussinessId");
            return (Criteria) this;
        }

        public Criteria andBussinessIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("bussiness_id >=", value, "bussinessId");
            return (Criteria) this;
        }

        public Criteria andBussinessIdLessThan(Integer value) {
            addCriterion("bussiness_id <", value, "bussinessId");
            return (Criteria) this;
        }

        public Criteria andBussinessIdLessThanOrEqualTo(Integer value) {
            addCriterion("bussiness_id <=", value, "bussinessId");
            return (Criteria) this;
        }

        public Criteria andBussinessIdIn(List<Integer> values) {
            addCriterion("bussiness_id in", values, "bussinessId");
            return (Criteria) this;
        }

        public Criteria andBussinessIdNotIn(List<Integer> values) {
            addCriterion("bussiness_id not in", values, "bussinessId");
            return (Criteria) this;
        }

        public Criteria andBussinessIdBetween(Integer value1, Integer value2) {
            addCriterion("bussiness_id between", value1, value2, "bussinessId");
            return (Criteria) this;
        }

        public Criteria andBussinessIdNotBetween(Integer value1, Integer value2) {
            addCriterion("bussiness_id not between", value1, value2, "bussinessId");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumberIsNull() {
            addCriterion("pay_order_number is null");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumberIsNotNull() {
            addCriterion("pay_order_number is not null");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumberEqualTo(String value) {
            addCriterion("pay_order_number =", value, "payOrderNumber");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumberNotEqualTo(String value) {
            addCriterion("pay_order_number <>", value, "payOrderNumber");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumberGreaterThan(String value) {
            addCriterion("pay_order_number >", value, "payOrderNumber");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumberGreaterThanOrEqualTo(String value) {
            addCriterion("pay_order_number >=", value, "payOrderNumber");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumberLessThan(String value) {
            addCriterion("pay_order_number <", value, "payOrderNumber");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumberLessThanOrEqualTo(String value) {
            addCriterion("pay_order_number <=", value, "payOrderNumber");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumberLike(String value) {
            addCriterion("pay_order_number like", value, "payOrderNumber");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumberNotLike(String value) {
            addCriterion("pay_order_number not like", value, "payOrderNumber");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumberIn(List<String> values) {
            addCriterion("pay_order_number in", values, "payOrderNumber");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumberNotIn(List<String> values) {
            addCriterion("pay_order_number not in", values, "payOrderNumber");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumberBetween(String value1, String value2) {
            addCriterion("pay_order_number between", value1, value2, "payOrderNumber");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumberNotBetween(String value1, String value2) {
            addCriterion("pay_order_number not between", value1, value2, "payOrderNumber");
            return (Criteria) this;
        }

        public Criteria andPayUpdateTimeIsNull() {
            addCriterion("pay_update_time is null");
            return (Criteria) this;
        }

        public Criteria andPayUpdateTimeIsNotNull() {
            addCriterion("pay_update_time is not null");
            return (Criteria) this;
        }

        public Criteria andPayUpdateTimeEqualTo(Date value) {
            addCriterion("pay_update_time =", value, "payUpdateTime");
            return (Criteria) this;
        }

        public Criteria andPayUpdateTimeNotEqualTo(Date value) {
            addCriterion("pay_update_time <>", value, "payUpdateTime");
            return (Criteria) this;
        }

        public Criteria andPayUpdateTimeGreaterThan(Date value) {
            addCriterion("pay_update_time >", value, "payUpdateTime");
            return (Criteria) this;
        }

        public Criteria andPayUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("pay_update_time >=", value, "payUpdateTime");
            return (Criteria) this;
        }

        public Criteria andPayUpdateTimeLessThan(Date value) {
            addCriterion("pay_update_time <", value, "payUpdateTime");
            return (Criteria) this;
        }

        public Criteria andPayUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("pay_update_time <=", value, "payUpdateTime");
            return (Criteria) this;
        }

        public Criteria andPayUpdateTimeIn(List<Date> values) {
            addCriterion("pay_update_time in", values, "payUpdateTime");
            return (Criteria) this;
        }

        public Criteria andPayUpdateTimeNotIn(List<Date> values) {
            addCriterion("pay_update_time not in", values, "payUpdateTime");
            return (Criteria) this;
        }

        public Criteria andPayUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("pay_update_time between", value1, value2, "payUpdateTime");
            return (Criteria) this;
        }

        public Criteria andPayUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("pay_update_time not between", value1, value2, "payUpdateTime");
            return (Criteria) this;
        }

        public Criteria andPayOrderStateIsNull() {
            addCriterion("pay_order_state is null");
            return (Criteria) this;
        }

        public Criteria andPayOrderStateIsNotNull() {
            addCriterion("pay_order_state is not null");
            return (Criteria) this;
        }

        public Criteria andPayOrderStateEqualTo(String value) {
            addCriterion("pay_order_state =", value, "payOrderState");
            return (Criteria) this;
        }

        public Criteria andPayOrderStateNotEqualTo(String value) {
            addCriterion("pay_order_state <>", value, "payOrderState");
            return (Criteria) this;
        }

        public Criteria andPayOrderStateGreaterThan(String value) {
            addCriterion("pay_order_state >", value, "payOrderState");
            return (Criteria) this;
        }

        public Criteria andPayOrderStateGreaterThanOrEqualTo(String value) {
            addCriterion("pay_order_state >=", value, "payOrderState");
            return (Criteria) this;
        }

        public Criteria andPayOrderStateLessThan(String value) {
            addCriterion("pay_order_state <", value, "payOrderState");
            return (Criteria) this;
        }

        public Criteria andPayOrderStateLessThanOrEqualTo(String value) {
            addCriterion("pay_order_state <=", value, "payOrderState");
            return (Criteria) this;
        }

        public Criteria andPayOrderStateLike(String value) {
            addCriterion("pay_order_state like", value, "payOrderState");
            return (Criteria) this;
        }

        public Criteria andPayOrderStateNotLike(String value) {
            addCriterion("pay_order_state not like", value, "payOrderState");
            return (Criteria) this;
        }

        public Criteria andPayOrderStateIn(List<String> values) {
            addCriterion("pay_order_state in", values, "payOrderState");
            return (Criteria) this;
        }

        public Criteria andPayOrderStateNotIn(List<String> values) {
            addCriterion("pay_order_state not in", values, "payOrderState");
            return (Criteria) this;
        }

        public Criteria andPayOrderStateBetween(String value1, String value2) {
            addCriterion("pay_order_state between", value1, value2, "payOrderState");
            return (Criteria) this;
        }

        public Criteria andPayOrderStateNotBetween(String value1, String value2) {
            addCriterion("pay_order_state not between", value1, value2, "payOrderState");
            return (Criteria) this;
        }

        public Criteria andPayMoneyIsNull() {
            addCriterion("pay_money is null");
            return (Criteria) this;
        }

        public Criteria andPayMoneyIsNotNull() {
            addCriterion("pay_money is not null");
            return (Criteria) this;
        }

        public Criteria andPayMoneyEqualTo(Double value) {
            addCriterion("pay_money =", value, "payMoney");
            return (Criteria) this;
        }

        public Criteria andPayMoneyNotEqualTo(Double value) {
            addCriterion("pay_money <>", value, "payMoney");
            return (Criteria) this;
        }

        public Criteria andPayMoneyGreaterThan(Double value) {
            addCriterion("pay_money >", value, "payMoney");
            return (Criteria) this;
        }

        public Criteria andPayMoneyGreaterThanOrEqualTo(Double value) {
            addCriterion("pay_money >=", value, "payMoney");
            return (Criteria) this;
        }

        public Criteria andPayMoneyLessThan(Double value) {
            addCriterion("pay_money <", value, "payMoney");
            return (Criteria) this;
        }

        public Criteria andPayMoneyLessThanOrEqualTo(Double value) {
            addCriterion("pay_money <=", value, "payMoney");
            return (Criteria) this;
        }

        public Criteria andPayMoneyIn(List<Double> values) {
            addCriterion("pay_money in", values, "payMoney");
            return (Criteria) this;
        }

        public Criteria andPayMoneyNotIn(List<Double> values) {
            addCriterion("pay_money not in", values, "payMoney");
            return (Criteria) this;
        }

        public Criteria andPayMoneyBetween(Double value1, Double value2) {
            addCriterion("pay_money between", value1, value2, "payMoney");
            return (Criteria) this;
        }

        public Criteria andPayMoneyNotBetween(Double value1, Double value2) {
            addCriterion("pay_money not between", value1, value2, "payMoney");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andPayOrderSharestatusIsNull() {
            addCriterion("pay_order_sharestatus is null");
            return (Criteria) this;
        }

        public Criteria andPayOrderSharestatusIsNotNull() {
            addCriterion("pay_order_sharestatus is not null");
            return (Criteria) this;
        }

        public Criteria andPayOrderSharestatusEqualTo(Integer value) {
            addCriterion("pay_order_sharestatus =", value, "payOrderSharestatus");
            return (Criteria) this;
        }

        public Criteria andPayOrderSharestatusNotEqualTo(Integer value) {
            addCriterion("pay_order_sharestatus <>", value, "payOrderSharestatus");
            return (Criteria) this;
        }

        public Criteria andPayOrderSharestatusGreaterThan(Integer value) {
            addCriterion("pay_order_sharestatus >", value, "payOrderSharestatus");
            return (Criteria) this;
        }

        public Criteria andPayOrderSharestatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("pay_order_sharestatus >=", value, "payOrderSharestatus");
            return (Criteria) this;
        }

        public Criteria andPayOrderSharestatusLessThan(Integer value) {
            addCriterion("pay_order_sharestatus <", value, "payOrderSharestatus");
            return (Criteria) this;
        }

        public Criteria andPayOrderSharestatusLessThanOrEqualTo(Integer value) {
            addCriterion("pay_order_sharestatus <=", value, "payOrderSharestatus");
            return (Criteria) this;
        }

        public Criteria andPayOrderSharestatusIn(List<Integer> values) {
            addCriterion("pay_order_sharestatus in", values, "payOrderSharestatus");
            return (Criteria) this;
        }

        public Criteria andPayOrderSharestatusNotIn(List<Integer> values) {
            addCriterion("pay_order_sharestatus not in", values, "payOrderSharestatus");
            return (Criteria) this;
        }

        public Criteria andPayOrderSharestatusBetween(Integer value1, Integer value2) {
            addCriterion("pay_order_sharestatus between", value1, value2, "payOrderSharestatus");
            return (Criteria) this;
        }

        public Criteria andPayOrderSharestatusNotBetween(Integer value1, Integer value2) {
            addCriterion("pay_order_sharestatus not between", value1, value2, "payOrderSharestatus");
            return (Criteria) this;
        }

        public Criteria andBusinessNameIsNull() {
            addCriterion("business_name is null");
            return (Criteria) this;
        }

        public Criteria andBusinessNameIsNotNull() {
            addCriterion("business_name is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessNameEqualTo(String value) {
            addCriterion("business_name =", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameNotEqualTo(String value) {
            addCriterion("business_name <>", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameGreaterThan(String value) {
            addCriterion("business_name >", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameGreaterThanOrEqualTo(String value) {
            addCriterion("business_name >=", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameLessThan(String value) {
            addCriterion("business_name <", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameLessThanOrEqualTo(String value) {
            addCriterion("business_name <=", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameLike(String value) {
            addCriterion("business_name like", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameNotLike(String value) {
            addCriterion("business_name not like", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameIn(List<String> values) {
            addCriterion("business_name in", values, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameNotIn(List<String> values) {
            addCriterion("business_name not in", values, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameBetween(String value1, String value2) {
            addCriterion("business_name between", value1, value2, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameNotBetween(String value1, String value2) {
            addCriterion("business_name not between", value1, value2, "businessName");
            return (Criteria) this;
        }

        public Criteria andPaySharetimeIsNull() {
            addCriterion("pay_sharetime is null");
            return (Criteria) this;
        }

        public Criteria andPaySharetimeIsNotNull() {
            addCriterion("pay_sharetime is not null");
            return (Criteria) this;
        }

        public Criteria andPaySharetimeEqualTo(Date value) {
            addCriterion("pay_sharetime =", value, "paySharetime");
            return (Criteria) this;
        }

        public Criteria andPaySharetimeNotEqualTo(Date value) {
            addCriterion("pay_sharetime <>", value, "paySharetime");
            return (Criteria) this;
        }

        public Criteria andPaySharetimeGreaterThan(Date value) {
            addCriterion("pay_sharetime >", value, "paySharetime");
            return (Criteria) this;
        }

        public Criteria andPaySharetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("pay_sharetime >=", value, "paySharetime");
            return (Criteria) this;
        }

        public Criteria andPaySharetimeLessThan(Date value) {
            addCriterion("pay_sharetime <", value, "paySharetime");
            return (Criteria) this;
        }

        public Criteria andPaySharetimeLessThanOrEqualTo(Date value) {
            addCriterion("pay_sharetime <=", value, "paySharetime");
            return (Criteria) this;
        }

        public Criteria andPaySharetimeIn(List<Date> values) {
            addCriterion("pay_sharetime in", values, "paySharetime");
            return (Criteria) this;
        }

        public Criteria andPaySharetimeNotIn(List<Date> values) {
            addCriterion("pay_sharetime not in", values, "paySharetime");
            return (Criteria) this;
        }

        public Criteria andPaySharetimeBetween(Date value1, Date value2) {
            addCriterion("pay_sharetime between", value1, value2, "paySharetime");
            return (Criteria) this;
        }

        public Criteria andPaySharetimeNotBetween(Date value1, Date value2) {
            addCriterion("pay_sharetime not between", value1, value2, "paySharetime");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}